package com.fr.report.core;

import java.util.Iterator;
import java.util.List;

public class SeriesIterator
  implements Iterator
{
  private int currentIndex = -1;
  private List iteratorList = null;

  public SeriesIterator(List paramList)
  {
    this.iteratorList = paramList;
    if (this.iteratorList.size() > 0)
      this.currentIndex = 0;
  }

  public boolean hasNext()
  {
    while (true)
    {
      if ((this.currentIndex < 0) || (this.currentIndex >= this.iteratorList.size()))
        return false;
      Iterator localIterator = (Iterator)this.iteratorList.get(this.currentIndex);
      if (localIterator.hasNext())
        return true;
      this.currentIndex += 1;
    }
  }

  public Object next()
  {
    if ((this.currentIndex < 0) || (this.currentIndex >= this.iteratorList.size()))
      return null;
    Iterator localIterator = (Iterator)this.iteratorList.get(this.currentIndex);
    return localIterator.next();
  }

  public void remove()
  {
  }
}